-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(sdk): safari rendering #2642
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
if (window.requestIdleCallback) { | ||
window.requestIdleCallback(callback) | ||
} else { | ||
window.setTimeout(callback, 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rapaz, o que exatamenta essa logica de verificar se esta idle faz?
me assustei uma vez com setTimeout de 1 no SF e agora me daparo com isso de novo kkkk
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- mesmo problema: requestIdleCallback not available in Safari remix-run/indie-stack#124
- mesmo fix, inclusive: fix: Fallback to setTimeout if rIC isn't available remix-run/indie-stack#125
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
não precisamos de uma solução mais sofisticada conforme o shim do link?
What's the purpose of this pull request?
requestIdleCallback
is not available in Safari.